package com.whfc.fse.dao;

import com.whfc.fse.entity.FseBridgeData;
import org.apache.ibatis.annotations.Param;

public interface FseBridgeDataMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FseBridgeData record);

    int insertSelective(FseBridgeData record);

    FseBridgeData selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FseBridgeData record);

    int updateByPrimaryKey(FseBridgeData record);

    /**
     * 使用设备id和硬件id查询最新记录
     *
     * @param bridgeId
     * @return
     */
    FseBridgeData selectByBridgeId(@Param("bridgeId") Integer bridgeId);

    /**
     * 删除数据
     * @param bridgeId 架桥机ID
     */
    void logicDelByBridgeId(@Param("bridgeId") Integer bridgeId);

}